package com.gong.yuanma.spring;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/7/5 0005 22:00
 */
@Data
@AllArgsConstructor
public class Person {
    private String name = "default";

    public Person() {
        System.out.println("调用无参构造");
    }

    public void init(){
        System.out.println("初始化");
    }

    public void destory(){
        System.out.println("销毁");
    }
}
